package com.per.mybootall.controller;

import com.per.mybootall.service.LogoutInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("logout")
public class LogOutController {
    @Autowired
    private LogoutInter logoutInter;

    /*注销接口*/
    @PostMapping("/out")
    public String logout(String roottoken, String whoareroot){
        System.out.println("parames:"+roottoken+","+whoareroot);
        return logoutInter.out(roottoken, whoareroot);
    }
}
